public class Main2 {
    public static void main(String[] args) {

    }

    //双指针
    public static String reverseWords1(String s) {
        StringBuilder sb = new StringBuilder();

        int j = s.length()-1;

        while (j >= 0) {
            //找到单词的最后
            while(j>= 0 && s.charAt(j) == ' ') j--;//单词的最后

            //找到单词的开头
            while (i>= 0 )
        }
    }
}
